
#************************VARIABLES**********************************

$invoicecsvSource = "D:\Document Types\Invoices\2012-05-18-10-19-38.csv"
$invoiceSourceFolder = "D:\Document Types\Invoices"
$importInvoiceYear = 2012
$receiptcsvSource = "D:\Document Types\Receipts\2012-09-20-13-37-06.csv"
$receiptSourceFolder = "D:\Document Types\Receipts"
$importReceiptYear = 2012
#*******************************************************************

$ErrorActionPreference="SilentlyContinue"
Stop-Transcript | Out-Null
$ErrorActionPreference="Continue"
Start-Transcript -Path release.txt -Append
#deploy package
./deployment.ps1

#create receipt site for year 2012
./createReceiptSite.ps1 -receiptYear 2012

#import documents and metadata for receipts 2012
./ImportReceipts.ps1 -csvSource $receiptcsvSource -receiptSourceFolder $receiptSourceFolder -importYear $importReceiptYear

#import documents and metadata for invoices 2012
./createInvoiceSite.ps1 -invoiceYear 2012

./ImportInvoices.ps1 -csvSource $invoicecsvSource -invoiceSourceFolder $invoiceSourceFolder -importYear $importInvoiceYear

#import GATs and CA

#./ImportGATCA.ps1


#create managed properties for search crawl after all documents are created
./createManagedProperties.ps1

Stop-Transcript